#include<iostream>
using namespace std;
class Date
{
public:
	Date(int year = 1, int month = 0,int day = 0)
	{
		_year = year;
		_month = month;
		_day = day;
	}

	void Print()const
	{
		cout << _year << "-" << _month << "-" << _day << endl;
		//this->_day = 10;
	}
private:
	int _year;
	int _month;
	int _day;
};
void fun(const Date& d)
{
	d.Print();
}
int main()
{
	Date d1(2023, 10, 31);
	//d1.Print();
	fun(d1);
	return 0;
}